﻿<!DOCTYPE html>
<!--法律法规部门界面-->
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

    <style>
        .redItem .el-form-item__label {
            width: 110px;
        }
        /*重写弹窗样式*/
        .el-dialog__body {
            height: 300px;
        }
    </style>
</head>
<body>
    <!--头部按钮-->
    
<div id="app" v-cloak>   
        <el-form label-position="right" ref="form" :inline="true" :model="formInline" class="demo-form-inline"
                 style="margin-bottom: 15px;">
            <el-row>
                <el-col class="head-tool">
					<span>
                                <btn :text="col.btnSelect" imgsrc="/static/images/search.png" linetype="3"
                                    @click="onSubmit"></btn>
                                <btn :text="col.btnOptionSelect" imgsrc="/static/images/general.png"linetype="4" @click="UserInput('tj')"></btn>
                            </span>
                </el-col>
            </el-row>
            <el-row>
                <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="6">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input v-model="formInline.model.ClassName" :placeholder="BlongtoClass.ClassName" size="mini">
                                <template slot="prepend">
                                    {{BlongtoClass.ClassName+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
            </el-row>
        </el-form>
        <el-table stripe ref="table" :data="ListItem.tableData" :row-key="getRowKeys" :height="ListItem.tableHeight" border
                  @selection-change="handleSelectionChange" row-style="height:10px" style="width: 100%;">
            <!--复选框-->
            <el-table-column type="selection" style="padding-top: 0px;padding-bottom: 0px;" align="center" width="55" :reserve-selection="true">
            </el-table-column>
            <!--数据-->
            <el-table-column prop="BelongToClass" :label="BlongtoClass.ClassName" width="110">
            </el-table-column>
        </el-table>
        <el-row type="flex" justify="end">
            <!--分页-->
            <el-pagination ref="page" @size-change="handleSizeChange" @current-change="handleCurrentChange"
                           :current-page="ListItem.currentPage" :page-sizes="ListItem.pagesizes" :page-size="ListItem.pagesize"
                           :layout="ListItem.layout" :total="ListItem.total">
            </el-pagination>
        </el-row>
    </div>
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                ListItem: ListItem,
                formInline: {
                    model: { ClassName: ''},
                    offset: 0,
                    limit: 10
                }
            },
            mounted: function () {
                //初始化数据
                this.GetPageData(1);
                //列表高度自适应
                tablehigh(this);
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                onSubmit: function () { },
                UserInput: function () { },
                //获取分页数据
                GetPageData: function (currentIndex) { GetPageData(this, currentIndex, '/api/BelongToClassChoose/GetList') },
            }
        })
    </script>
</body>
</html>